#ifndef NAMELIST_H
#define NAMELIST_H

#include <string>
#include <iostream>
#include <fstream>

using namespace std;

class NameList
{
    public:
        NameList();
        virtual ~NameList();
        void searchName(string code, string& name, string& surname);
        bool isEnd();
        bool isCode(string n);
        string readWord(string& s);


    private:
        ifstream list;
};

#endif // NAMELIST_H
